<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <link rel="stylesheet" type="text/css" href="/static/css/newmain.css"/>
    <link rel="stylesheet" type="text/css" href="/static/css/top.css"/>
    <title>{{.sysname}}</title>
</head>
{{template "top.html" .}}
<body class="camslist_body">
<div class="sys_main">
    <div class="modal-headers">页面配置器</div>
    </div>
    <div class="tbarlist">
        <a href="/pageconfig/clearcache"><input type="button" class="addcams_button btn-addcams" value="清空缓存"/></a>
        <a href="/pageconfig/reset"><input type="button" class="addcams_button btn-addcams" value="恢复数据"/></a>
       &nbsp; <p style="display: inline-block;color: #B4C4DC">温馨提示： 修改下面配置信息后，即可到《页面展示》模块查看生成的页面。</p>
    </div>
    <div class="sys_right_table" >
        <table class="tab_pub" id="tb-1">
            <thead>
            <tr class="tab_rows1">
                <th width="10%">配置Id</th>
                <th width="70%">配置内容</th>
                <th width="15%">上次修改时间</th>
                <th width="120px">操作</th>
            </tr>
            </thead>
            <tbody >
            {{range  $index,$vo := .list}}
                <tr {{if IsOdd $index}}class="rows_restodd"{{else}}class="rows_resteven"{{end}} >
                    <td class="td_left">
                        <a href="/pageconfig/edit?id={{$vo.Id}}" class="rows_hover">{{$vo.ConfigId}} </a>
                    </td>
                    <td class="td_left">{{$vo.ConfigJson}}</td>
                    <td class="td_left">{{$vo.LastModifyTime}}</td>
                    <td class="td_left">
                        <a href="/pageconfig/edit?id={{$vo.Id}}" class="tab_edit"> </a>
                        <a  class="tab_delicon"> </a>
                    </td>
                </tr>
            {{end}}
            </tbody>
        </table>
    </div>
    <div style="clear:both"></div>
</div>
</body>
<script src="/static/js/jquery-3.4.1.min.js"></script>
<script>
    $(document).ready(function () {
        $(".tab_delicon").click(function () {
            return confirm("确定要删除此记录吗？");
        });
    })
</script>
</html>